/**
 * 
 */
package HostEuro;

import java.rmi.Naming;
import java.rmi.RemoteException;
/**
 * @author Diego2
 *
 */
public class ServidorRemoto {
	public ServidorRemoto(){
		//Rodando o rmi
		try{
			java.rmi.registry.LocateRegistry.createRegistry(1099);
			
		}catch(Exception e){
			System.out.println("Erro no rmi Registry");
			e.printStackTrace();
		}
		try {
			IConversaoEuro servico = new ConversaoEuroImpl();
			Naming.rebind("ConversorEuro", servico);
		} catch (Exception e) {

			e.printStackTrace();
		}
	}
	

}
